package com.bkaka.service;

import com.bkaka.entity.ExamSubject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by maxiaoqiang on 2018/9/3.
 */
public interface ExamSubjectService {

    // 查找所有科目
    List<ExamSubject> findAll();

    // 查找科目章节
    List<ExamSubject> findSubjectChapter();

    // 添加类别
    void create(ExamSubject category);

    // 删除
    boolean delete(@Param("id") Integer id);

    // 更新
    void update(ExamSubject category);

    // 根据类别ID查找
    List<ExamSubject> findByCategory(@Param("id") Integer id);

    ExamSubject findById(@Param("id") Integer id);
}
